package com.caifu.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 药物发放导出
 *
 * @author tww
 * ClassName: ExcelMeicineDistribution.java、
 * createTime: 2020年11月18日 17:43:53
 **/
@Data
@NoArgsConstructor
@ContentRowHeight(25)
@HeadRowHeight(30)
public class ExcelMeicineDistribution {

    /**
     * 药物名称
     */
    @ExcelProperty(value = {"药物名称","药物名称"},index = 0)
    @ColumnWidth(25)
    private String meicineName;

    /**
     * 药物剂量
     */
    @ExcelProperty(value = {"剂量","剂量"},index = 1)
    @ColumnWidth(25)
    private String meicineDosage;

    /**
     * 早8点药量
     */
    @ExcelProperty(value = {"服药时间","8"},index = 2)
    private String morningCount;

    /**
     * 中午12点药量
     */
    @ExcelProperty(value = {"服药时间","12"},index = 3)
    private String noonCount;

    /**
     * 下午4点药量
     */
    @ExcelProperty(value = {"服药时间","4"},index = 4)
    private String afternoonCount;

    /**
     * 晚上8点药量
     */
    @ExcelProperty(value = {"服药时间","8"},index = 5)
    private String nightCount;

    /**
     * 开始日期
     */
    @ExcelProperty(value = {"开始日期","开始日期"},index = 6)
    @DateTimeFormat("yyyy年MM月dd日")
    @ColumnWidth(25)
    private Date startDate;

    /**
     * 结束日期
     */
    @ExcelProperty(value = {"终止日期","终止日期"},index = 7)
    @DateTimeFormat("yyyy年MM月dd日")
    @ColumnWidth(25)
    private Date endDate;

    /**
     * 备注信息
     */
    @ExcelProperty(value = {"备注","备注"},index = 8)
    @ColumnWidth(30)
    private String remark;


}
